package com.xnx3.wangmarket.plugin.innerDown.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import com.xnx3.j2ee.entity.BaseEntity;

/**
 * 用户-部门对应表，用户属于哪个部门
 */
@Entity
@Table(name = "plugin_innerdown_file")
public class InnerDownFile extends BaseEntity {
	
	private Integer id;		//自动编号
	private String name;	//上传的文件的名字
	private Long size;		//文件大小，单位 Byte , 1000Byte = 1KB
	private String suffix;	//文件的后缀名
	private String url;		//文件下载的url地址，文件存放的url，绝对路径
	private Integer userid;	//上传者的用户id
	private Integer addtime;	//添加时间
	private Short isdelete;	//是否删除
	private Integer branchid;	//所属部门id，对应 plugin_innerdown_branch.id 。 0则是可用于所有部门
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Long getSize() {
		return size;
	}
	public void setSize(Long size) {
		this.size = size;
	}
	public String getSuffix() {
		return suffix;
	}
	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public Integer getUserid() {
		return userid;
	}
	public void setUserid(Integer userid) {
		this.userid = userid;
	}
	public Short getIsdelete() {
		return isdelete;
	}
	public void setIsdelete(Short isdelete) {
		this.isdelete = isdelete;
	}
	public Integer getAddtime() {
		return addtime;
	}
	public void setAddtime(Integer addtime) {
		this.addtime = addtime;
	}
	public Integer getBranchid() {
		return branchid;
	}
	public void setBranchid(Integer branchid) {
		this.branchid = branchid;
	}
	
}